package com.neuedu.yunong.service.impl;
import lombok.RequiredArgsConstructor;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.neuedu.yunong.mapper.YunongLandAgricultureReportMapper;
import com.neuedu.yunong.domain.YunongLandAgricultureReport;
import com.neuedu.yunong.service.IYunongLandAgricultureReportService;

/**
 * 土地资源与农牧细况综合Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-14
 */
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class YunongLandAgricultureReportServiceImpl extends ServiceImpl<YunongLandAgricultureReportMapper, YunongLandAgricultureReport> implements IYunongLandAgricultureReportService
{
    private final YunongLandAgricultureReportMapper yunongLandAgricultureReportMapper;

    /**
     * 查询土地资源与农牧细况综合
     * 
     * @param id 土地资源与农牧细况综合主键
     * @return 土地资源与农牧细况综合
     */
    @Override
    public YunongLandAgricultureReport selectYunongLandAgricultureReportById(Long id)
    {
        return yunongLandAgricultureReportMapper.selectYunongLandAgricultureReportById(id);
    }

    /**
     * 查询土地资源与农牧细况综合列表
     * 
     * @param yunongLandAgricultureReport 土地资源与农牧细况综合
     * @return 土地资源与农牧细况综合
     */
    @Override
    public List<YunongLandAgricultureReport> selectYunongLandAgricultureReportList(YunongLandAgricultureReport yunongLandAgricultureReport)
    {
        return yunongLandAgricultureReportMapper.selectYunongLandAgricultureReportList(yunongLandAgricultureReport);
    }

    /**
     * 新增土地资源与农牧细况综合
     * 
     * @param yunongLandAgricultureReport 土地资源与农牧细况综合
     * @return 结果
     */
    @Override
    public int insertYunongLandAgricultureReport(YunongLandAgricultureReport yunongLandAgricultureReport)
    {
        return yunongLandAgricultureReportMapper.insertYunongLandAgricultureReport(yunongLandAgricultureReport);
    }

    /**
     * 修改土地资源与农牧细况综合
     * 
     * @param yunongLandAgricultureReport 土地资源与农牧细况综合
     * @return 结果
     */
    @Override
    public int updateYunongLandAgricultureReport(YunongLandAgricultureReport yunongLandAgricultureReport)
    {
        return yunongLandAgricultureReportMapper.updateYunongLandAgricultureReport(yunongLandAgricultureReport);
    }

    /**
     * 批量删除土地资源与农牧细况综合
     * 
     * @param ids 需要删除的土地资源与农牧细况综合主键
     * @return 结果
     */
    @Override
    public int deleteYunongLandAgricultureReportByIds(Long[] ids)
    {
        return yunongLandAgricultureReportMapper.deleteYunongLandAgricultureReportByIds(ids);
    }

    /**
     * 删除土地资源与农牧细况综合信息
     * 
     * @param id 土地资源与农牧细况综合主键
     * @return 结果
     */
    @Override
    public int deleteYunongLandAgricultureReportById(Long id)
    {
        return yunongLandAgricultureReportMapper.deleteYunongLandAgricultureReportById(id);
    }
}
